<div th:fragment="footer">
    <hr>
    <div class="page-count">
        Page <span id="pagenumber"></span> of <span id="pagecount"></span>
    </div>
</div>